{{-- filepath: /Users/raoul/Downloads/garden/resources/views/wechat/service_account/components/user_card.blade.php --}}
<div class="user-card">
    <div class="user-header">
        @if(Auth::guard('wechat')->check())
        @php
        $user = Auth::guard('wechat')->user();
        @endphp
        <img src="{{ $user->avatar ?? asset('images/default-avatar.png') }}" class="user-avatar" alt="用户头像">
        <div class="user-info">
            <h2>{{ $user->nickname ?? $user->name ?? '用户名' }}</h2>
            <p>{{ $user->province ?? '' }} {{ $user->city ?? '' }}</p>
        </div>
        @else
        <img src="{{ asset('images/default-avatar.png') }}" class="user-avatar" alt="用户头像">
        <div class="user-info">
            <h2>未登录</h2>
            <p><a href="{{ route('wechat.service.account.login') }}" style="color: #07C160;">点击登录</a></p>
        </div>
        @endif
    </div>
</div>